//地址栏参数解析
export const parseUrl = (url) => { //定义函数
    var pattern = /(\w+)=(\w+)/ig; //定义正则表达式
    var parames = {}; //定义数组
    url.replace(pattern, function (a, b, c) {
        parames[b] = c;
    });
    return parames; //返回这个数组.
}